package com.cqjtu.eecs.service;

import com.cqjtu.eecs.entity.Course;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author   
 * @since 2022-02-28
 */
public interface ICourseService extends IService<Course> {
    int updateCourseByCourseCode(Integer id,Course course);
    List<Course> selectAllCourse(int currPage, int pageSize);
    int deletCourseById(Integer id);

    /**
     * 获取sheet表中所有课程在数据库中的课程名称代码键值对
     * @param names
     * @param majorCode
     * @param versionCode
     * @return
     */
    Map<String, String> listCourseNameCodeMapByNameVersionCodeAndMajorCode(List<String> names, String majorCode, String versionCode);

    int selectAllCourseSum();
    Course selectCourseByCourseName(String courseName);
    List<Course> selectAllCourselimit(int currPage, int pageSize);

    List<Course> selectAllCourseByLike(String courseName);
}
